package com.agent.platform.controller;

import com.agent.platform.common.Result;
import com.agent.platform.service.DashboardService;
import com.agent.platform.vo.DashboardVO;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/dashboard")
@RequiredArgsConstructor
public class DashboardController {
    
    private final DashboardService dashboardService;
    
    @GetMapping("/overview")
    public Result<DashboardVO> getOverview() {
        return Result.success(dashboardService.getOverview());
    }
}
